package com_3;

import java.io.*;
import java.net.Socket;

public class ClientTCP {
    public static void main(String[] args) throws Exception {
        Socket  sk=new Socket("192.168.29.59",10086);
        BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(sk.getOutputStream()));
        BufferedReader  br=new BufferedReader(new InputStreamReader(System.in));
        String line;
        while((line=br.readLine())!=null){
            bw.write(line);
            bw.newLine();
            bw.flush();
        }
        br.close();
        bw.close();
        sk.close();

    }
}
